﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddEdit.aspx.cs" Inherits="CardLogistics.Web.MainPage.CardArrival.OrderArrivalBook.AddEdit" %>

<%@ Register Src="../../../Controls/WebUserControl_Nav.ascx" TagName="WebUserControl_Nav"
    TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>订货管理台帐_新增编辑</title>
    <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/selPage.css" rel="stylesheet" type="text/css" />
    <script src="../../../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../../../js/valReq.js" type="text/javascript"></script>
    <script src="../../../js/jquery.js" type="text/javascript"></script>
    <script src="../../../js/jquery.tipswindow.2.0.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        function valReq() {
            var altStr = valid_isempty('OrderNo', '订单编号');
            altStr += valid_isempty('CheckNo', '入库单号');
            altStr += valid_isempty('ORDERDATE', '订单日期');
            altStr += valid_isempty('STORAGEDATE', '入库日期');
            altStr += valid_isempty('ORDERNUMBER', '订单数量');
            altStr += valid_isempty('CHECKNUMBER', '入库数量');
            if (altStr != "") {
                alert(altStr);
                return false;
            }
            else {
                return true;
            }
        }
    </script>
    <script type="text/javascript">
        $(document).ready(function () {

            $("#OrderNo").click(function () { //选择订单
                $.tipsWindow({
                    ___title: "选择订单",
                    ___content: "url:get?../../SelectPage/SelOrder.aspx",
                    ___width: "1000",
                    ___height: "500",
                    ___drag: "___boxTitle",
                    ___showbg: true
                });
            });

            $("#CheckNo").click(function () { //选择卡片验收单
                $.tipsWindow({
                    ___title: "选择卡片验收单",
                    ___content: "url:get?../../SelectPage/StorageCheck.aspx",
                    ___width: "1000",
                    ___height: "500",
                    ___drag: "___boxTitle",
                    ___showbg: true
                });
            });

        })
    </script>
</head>
<body>
    <form id="Form1" runat="server">
    <uc1:WebUserControl_Nav ID="WebUserControl_Nav1" runat="server" />
    <table class="theForm" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td class="titleTxt">
                订单编号：
            </td>
            <td class="contentTxt">
                <input id="OrderNo" runat="server" readonly="readonly" type="text" class="dfinputImg" />
                <asp:HiddenField ID="hf_OrderId" runat="server" />
            </td>
            <td class="titleTxt">
                入库单号：
            </td>
            <td class="contentTxt">
                <input id="CheckNo" runat="server" readonly="readonly" type="text" class="dfinputImg" />
                <asp:HiddenField ID="hf_CheckId" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="titleTxt">
                订单日期：
            </td>
            <td class="contentTxt">
                <input id="ORDERDATE" runat="server" type="text" class="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
            </td>
            <td class="titleTxt">
                入库日期：
            </td>
            <td class="contentTxt">
                <input id="STORAGEDATE" runat="server" type="text" class="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
            </td>
        </tr>
        <tr>
            <td class="titleTxt">
                订单数量/张：
            </td>
            <td class="contentTxt">
                <input id="ORDERNUMBER" runat="server" type="text" class="dfinputNoEmp" />
            </td>
            <td class="titleTxt">
                入库数量/张：
            </td>
            <td class="contentTxt">
                <input id="CHECKNUMBER" runat="server" type="text" class="dfinputNoEmp" />
            </td>
        </tr>
        <tr>
            <td class="titleTxt">
                单价：
            </td>
            <td class="contentTxt">
                <input id="UNITPRICE" runat="server" type="text" class="dfinput" />
            </td>
            <td class="titleTxt">
                总价：
            </td>
            <td class="contentTxt">
                <input id="TOTALPRICE" runat="server" type="text" class="dfinput" />
            </td>
        </tr>
        <tr>
            <td class="titleTxt">
                应有数量/张：
            </td>
            <td class="contentTxt">
                <input id="DueNumber" runat="server" readonly="readonly" type="text" class="dfinput" />
            </td>
            <td class="titleTxt">
            </td>
            <td class="contentTxt">
            </td>
        </tr>
        <tr>
            <td class="titleTxt">
                缺号：
            </td>
            <td class="contentTxt" colspan="3">
                <input id="MISSINGCARDNO" runat="server" type="text" class="dfinput" style="width:90%" />
            </td>
        </tr>
        <tr>
            <td class="titleTxt">
                备注：
            </td>
            <td colspan="3">
                <input id="REMARK" runat="server" type="text" class="dfinput" maxlength="200" style="width:90%" />
            </td>
        </tr>
        <tr>
            <td colspan="4" align="center">
                <asp:Button ID="btn_Add" CssClass="btn" runat="server" Text="保存" OnClientClick="return valReq();"
                    OnClick="btn_Add_Click" />
                <input type="button" class="btn" value="返回" onclick="javascript:history.go(-1);" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
